// ##
#include "ForkBox.h"
#include "../runtime/AutomaticBoxCreatorRegistration.h"

namespace jm4bbx {
	using namespace bobox;

	//const char* ForkBoxDescriptor::BOX_ID = "Fork";
	REGISTER_BOX_TO_RUNTIME_BASE(Fork, ForkBox);

	const groupType ForkBoxDescriptor::INPUT_GROUP = groupType(0);

	//const groupType ForkBoxDescriptor::INPUT_DATA_GROUP = groupType(1);

	const groupType ForkBoxDescriptor::OUTPUT_GROUP_BEGIN = groupType(1);

	const  columnType ForkBoxDescriptor::INPUT_COLUMN = columnType(0);

	const columnType ForkBoxDescriptor::OUTPUT_COLUMN = columnType(0);

	const inType ForkBoxDescriptor::IN_ARC = inType(0);

	//const inType ForkBoxDescriptor::IN_DATA_ARC = inType(1);

	const outType ForkBoxDescriptor::OUT_ARC_BEGIN = outType(0);	

	const char* ForkBoxDescriptor::FORK_FACTOR_PARAM_NAME = "forkFactor";
	const char* ForkBoxDescriptor::HAS_DATA_PARAM_NAME = "hasData";

	outType ForkBoxDescriptor::getOutArc(int index) {
		return outType(OUT_ARC_BEGIN + index);
	}

	groupType ForkBoxDescriptor::getOutGroup(int index) {
		return groupType(OUTPUT_GROUP_BEGIN + index);
	}

}   //  namespace jm4bbx
